
package com.shop.cloud.mall.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.cloud.mall.common.entity.UserBalance;

import java.math.BigDecimal;

/**
 * 用户余额
 *
 * @author
 * @date 2023-11-01 09:47:36
 */
public interface UserBalanceService extends IService<UserBalance> {
    /**
     * 统一更新操作用户余额
     * @param userId 用户ID
     * @param amount 金额变量。+加，-减
     */
    void updateTotalAmount(String userId, BigDecimal amount);
}
